package com.base;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.base.home.R;

@Route(path = "/home/main")
public class MainActivity extends AppCompatActivity {
    @Autowired
    public String userone,usertwo,userthree;
    private TextView tvOne,tvTwo,tvThree;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);
        ARouter.getInstance().inject(this);
        initView();
    }

    private void initView() {
        tvOne = findViewById(R.id.user_one);
        tvTwo = findViewById(R.id.user_two);
        tvThree = findViewById(R.id.user_three);

        tvOne.setText(userone);
        tvTwo.setText(usertwo);
        tvThree.setText(userthree);
    }
}
